using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition22-被攻击的棋子是友方", menuName = "Skill/Condition/Condition22-被攻击的棋子是友方", order = 22)]
public class Condition22 : ConditionBase
{
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        if (e is not AttackChessEvent attackChessEvent) return false;
        return attackChessEvent.BeAttackedChess.GetChessSide() != pair.Chess.GetChessSide();
    }
}